import request from '@/utils/request'

/**
 * 分页查询员工日志信息
 *
 * @param {*} query
 */
export function fetchPrivacyProtocolList(params) {
  return request({
    url: '/smsk/admin/privacyPolicies/list',
    method: 'GET',
    params
  })
}


export function addPrivacyProtocol(data) {
  return request({
    url: '/smsk/admin/privacyPolicies/create',
    method: 'POST',
    data
  })
}

export function updatePrivacyProtocol(data) {
  return request({
    url: '/smsk/admin/privacyPolicies/update',
    method: 'POST',
    data
  })
}

export function delPrivacyProtocol(params) {
  return request({
    url: '/smsk/admin/privacyPolicies/delete',
    method: 'POST',
    params
  })
}


export function fetchPrivacyProtocolOperateList(params) {
  return request({
    url: '/smsk/admin/privacyPolicies/userAgreements/list',
    method: 'GET',
    params
  })
}


export function fetchPrivacyProtocolViewList(params) {
  return request({
    url: '/smsk/admin/privacyPolicies/views/list',
    method: 'GET',
    params
  })
}
